package com.motion.design.adpter;

public class Client {

    public static void main(String[] args) {
        //only for HK
        Target target = new ConcreteTarget();
        Hotel hotel = new Hotel(target);
        hotel.doCharge();

        //only have GB
        GBInterface myGb = new GBConcreate();
        Adapter adapter = new Adapter(myGb);
        hotel.setTarget(adapter);
        hotel.doCharge();
    }
}
